import axios from '@/utils/axios'

const api = {
  user: {
    login: (params) => axios.post('/api/login', params),
    message_code: (params) => axios.get('/api/message_code', params),
    info: () => axios.get('/api/info')
  },
  home: {
    banner: () => axios.get('/api/banner'),
    tab: () => axios.get('/api/home/tab')
  },
  product: {
    list: (params) => axios.get('/api/products', params)
  }
}

export default api
